package com.zjuh.qss.biz.dao;

import java.util.List;

import com.zjuh.qss.biz.dao.query.TopicQuery;
import com.zjuh.qss.biz.domain.TopicDO;

public interface TopicDAO {

	long create(TopicDO topic);
	
	void delete(long id);
	
	TopicDO queryById(long id);
	
	void update(TopicDO topic);
	
	List<TopicDO> queryForPage(TopicQuery topicQuery);
	
	void incrAttention(long id);
	
	List<TopicDO> queryForPageOrderByAttention(TopicQuery topicQuery);
	
	void updateItemCount(long topicId, int itemCount);
	
}
